﻿@model Me_has_visto.Models.MessageModel

@{
    ViewBag.Title = "Send";
}

<h2>Enviar Mensaje</h2>

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)

    <fieldset>
        <legend>MessageModel</legend>

        <div class="editor-label">
            @Html.LabelFor(model => model.From)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.From)
            @Html.ValidationMessageFor(model => model.From)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Email)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Email)
            @Html.ValidationMessageFor(model => model.Email)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Suject)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Suject)
            @Html.ValidationMessageFor(model => model.Suject)
        </div>

        <div class="editor-label">
            @Html.LabelFor(model => model.Message)
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Message)
            @Html.ValidationMessageFor(model => model.Message)
        </div>

        <p>
            <input type="submit" value="Enviar mensaje" />
        </p>
    </fieldset>
}

<!--div>
    @*@Html.ActionLink("Back to List", "Index")*@
</div-->

@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
}
